package fuxi01;

import java.util.Scanner;

public class Demo6 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入一个整数");
        int a = scanner.nextInt();
        System.out.println("输入二个整数");
        int b = scanner.nextInt();
        int he = a + b;
        int cha = a - b;
        System.out.println("和："+he);
        System.out.println("差："+cha);
    }
}
